package com.bdqn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.entity.PmsSpu;
import com.bdqn.entity.allParams.PmsSpuParam;
import com.bdqn.entity.responseDate.pmsProduct.PmsProductDetailDto;
import com.bdqn.util.PageDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品spu表 服务类
 * </p>
 *
 * @author hunter
 * @since 2022-04-30
 */
public interface PmsSpuService extends IService<PmsSpu> {
    //通过过滤条件去查询商品
    List<PmsSpu> searchPmsSpu(PmsSpuParam pmsSpuParam);
    //用来分页
    PageDto spuPage(PmsSpuParam pmsSpuParam);

    //通过商品id获取商品（spu+sku）信息
    PmsProductDetailDto getPmsSpuDtoById(@Param("id") Long id);
}
